<template>
  <div class="no-data">
    <img src="../../../assets/img/no-data.svg" />
    <span>
      {{msg||'暂无数据'}}
    </span>
  </div>
</template>

<script>
export default {
  name: 'no-data',
  props: {
    msg: String
  }
}
</script>

<style scoped lang="scss">
.no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  font-size: 1.5rem;
  color: $--color-primary;
  line-height: 1;
  opacity: .7;

  span {
    padding: 1rem 0;
  }
}

</style>
